﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DAQ.ModbusModule
{
    /// <summary>
    /// 设备链路类
    /// </summary>
    public class DeviceLink
    {
        public string UID { get; set; }
        public string Ip { get; set; }

        public int Port { get; set; }

        public int SlaveId { get; set; } = 1;

        /// <summary>
        /// 采集周期 单位：S   200ms 0.2s
        /// </summary>
        public double AcqTimeSpan { get; set; }

        public List<RegisterPoint> Points { get; set; }

        public DeviceLink()
        {
            Points = new List<RegisterPoint>();
        }
    }
}
